<template>
  <el-dropdown
    placement="bottom"
    trigger="click"
    @command="command"
    class="c-select-more"
  >
    <slot></slot>
    <template slot="dropdown">
      <slot name="dropdown"></slot>
    </template>
  </el-dropdown>
</template>
<script>
export default {
  name: 'CSelectMore',
  components: {},
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  beforeCreate() {},
  created() {},
  beforeMount() {},
  mounted() {},
  beforeUpdate() {},
  updated() {},
  activated() {},
  deactivated() {},
  beforeDestroy() {},
  destroyed() {},
  methods: {
    command(cmd) {
      this.$emit('command', cmd)
    }
  }
}
</script>
<style lang="scss">
.c-select-more {
  vertical-align: middle;
}
.el-button + .c-select-more,
.c-select-more + .el-button {
  margin-left: 10px;
}
</style>
